package com.example.mybatisplus.mapper;

import com.example.mybatisplus.model.domain.Book;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2023-07-05
 */
public interface BookMapper extends BaseMapper<Book> {

    List<Book> selectByBook(@Param("b") Book book);


    void deletes(@Param("ids") List<Long> ids);

    void inserts(@Param("books") List<Book> books);

    Book getById(@Param("id") Long l);
}
